package com.demo.entity.po;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description:心理自评结果表
 * @Date:2025-03-01
 * @author：author
*/
public class AssessmentInfo implements Serializable {

	/**
	 * 自评ID，主键，自增
	 */
	private Long assessmentId;

	/**
	 * 用户ID，外键
	 */
	private Long userId;

	/**
	 * 关联的对话ID，外键
	 */
	private Long chatId;

	/**
	 * 自评结果描述
	 */
	private String result;

	/**
	 * 自评得分（可选）
	 */
	private Integer score;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	public void setAssessmentId(Long assessmentId) {
		this.assessmentId = assessmentId;
	}

	public Long getAssessmentId() {
		return this.assessmentId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setChatId(Long chatId) {
		this.chatId = chatId;
	}

	public Long getChatId() {
		return this.chatId;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getResult() {
		return this.result;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getScore() {
		return this.score;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	@Override
	public String toString() {
		return "自评ID，主键，自增:" + assessmentId + ",用户ID，外键:" + userId + ",关联的对话ID，外键:" + chatId + ",自评结果描述:" + result + ",自评得分（可选）:" + score + ",创建时间:" + createTime + "";
	}

}